<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/11/10 0010
 * Time: 下午 3:37
 */
namespace Member\Model;
use Think\Model;
class UsedModel extends Model{

    //获取单个房源信息
    public function getOneHouse ($hid){
        $field = 'u.*,d.build,d.fool,d.room,d.total_fool as t_fool';
        $table = array ('yk_used'=>'u','yk_dict'=>'d','yk_user'=>'ur');
        $where = array (
            'u.id' => $hid,
            'u.dict_id=d.id',
        );
        return $this->table ($table)->field ($field)->where ($where)->find ();
    }

}